<div ng-controller="ClassesCtrl" ng-init="categoryAction()" class="sui-form form-horizontal">
    <ul class="sui-breadcrumb">
        <li><a href="#/classes/list">课程表类型</a></li>
        <li class="active">
            {{!class_category_id ?"创建":"edit"|translate}}
        </li>
    </ul>
    <form name="itemForm" novalidate>
        <div class="control-group">
            <label class="control-label v-top"><b style="color: #f00;">*</b> {{'课程名称'| translate}}：</label>
            <div class="controls">
                <input ng-model="category.name" type="text" name="name" value="" class="input-xlarge" required>
                <div ng-show="category.name.$error.required" class="sui-msg msg-error msg-clear help-block error">
                    <div class="msg-con">{{'required'| translate}}</div>
                    <s class="msg-icon"></s>
                </div>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label"></label>
            <div class="controls">
                <button class="sui-btn btn-primary" ng-disabled="!category.name" ng-click="cateAdd($event)">{{'save' | translate}}</button>
            </div>
        </div>
    </form>
</div>